package com.cskaoyan.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName MvcConfiguration
 * @Description
 * @Author Lxz
 * @Date 2022-8-13 14:50
 */
@Configuration
public class MvcConfiguration implements WebMvcConfigurer {

    @Bean("multipartResolver")
    public CommonsMultipartResolver multipartResolver() {
        return new CommonsMultipartResolver();
    }
}
